-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extend documentation on server-side apply #14300
Conversation
@kwiesmueller: You must be a member of the kubernetes/website-milestone-maintainers GitHub team to set the milestone. If you believe you should be able to issue the /milestone command, please contact your Website milestone maintainers and have them propose you as an additional delegate for this responsibility. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@kwiesmueller: GitHub didn't allow me to request PR reviews from the following users: simplytunde. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Deploy preview for kubernetes-io-vnext-staging processing. Building with commit f6601f0 https://app.netlify.com/sites/kubernetes-io-vnext-staging/deploys/5cffef7713e94d00071bb2c3 |
Please indicate if this is a WIP. |
sorry @tengqm |
|
||
### Clearing ManagedFields | ||
|
||
It is possible to strip all managedFields from an object by overwriting them using `MergePatch`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does it only work with mergepatch
?
/milestone 1.15 |
I think this is still relevant for 1.15. @kwiesmueller would you mind following-up on that? |
Sure, I'll take care of it. |
@apelisse I added another example for using JSONPatch. The PR should be ready for review by EOD today to still make it for 1.15. Can you think of any further things we should add here and get ready by this evening? |
|
||
### Clearing ManagedFields | ||
|
||
It is possible to strip all managedFields from an object by overwriting them using `MergePatch` or `JSONPatch`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about smp, what about updates?
@kwiesmueller Perfect, its just that this KEP is targeted for 1.16 I think kubernetes/enhancements#555 (comment). Correct me if I am wrong. It did not make it to 1.15 release cut. |
/hold |
@makoscafee the feature we talk about is already in alpha since 1.14. This PR got added to address a question as part of our umbrella issue kubernetes/kubernetes#73723 to show people how to reset a field that got introduced in 1.14 (alpha). So adding this is only related to the feature inside the KEP but directly targets the current release (1.15) on purpose. |
Thanks for clarification @kwiesmueller. Do you think will it be possible for it to be merged by today? we are behind schedule on getting all PR for this release merged. Let me know if there is anything needed. /hold clear |
@apelisse would it be okay for you to merge this? |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@apelisse I updated the PR and added this one for kubernetes/kubernetes#78912 verifying the docs work in all cases. |
Thanks a lot Kevin, looking at it now (I ended-up in various meeting this morning so I couldn't exactly do it when I said I would) |
/lgtm |
@jimangel Did you mean |
One thing that is not super clear is ... what does it mean to strip all the managed fields? what about the operation that you're running as you clear? Like.. what if I do: PATCH /api/v1/namespaces/default/configmaps/example-cm
Content-Type: application/merge-patch+json
Accept: application/json
Data: {"metadata":{"managedFields": [{}]}, "other": "changes"} What is |
I just tested this, seems like when you overwrite the managedFields in a request, this is the final operation. So in your example, the managedFields are empty. |
I agree that seems like a bug to me. |
Hi, @kwiesmueller and @apelisse so since this PR has some work to be done. and the deadline to have all PR passed since June 10th.I am going to strip it from 1.15 milestone and we can get it in as a fast follow -- retarget for master after the release, since we are publishing continuously from master. |
/milestone clear |
9031cd5
to
4a57e78
Compare
Closing this PR as it is referencing |
This PR adds more documentation for server-side apply and serves as the placeholder for potential other additions that are targeted for 1.15.
Current additions:
/milestone 1.15
/sig api-machinery
/wg apply
/cc @apelisse @jennybuckley @simplytunde